import java.util.Random;
import java.util.Scanner;

public class CallName{
    public static void main(String[] args){
        String[] names = new String[8];
        Scanner sc = new Scanner(System.in);
        System.out.println("请依次输入学生姓名：");
        for (int i = 0; i < names.length; i++) { names[i]=sc.next(); }
        System.out.println("随机选择选出的结果为："+randomStudentName(names));
    }
    public static String randomStudentName(String[] names){
        Random ran = new Random();
        int index = ran.nextInt(names.length);
        return names[index];
    }
}